package jsyf.oa.entity.doc;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Administrator on 2018/4/20.
 */
@Entity
@Table(name = "T_DOC_MAIN_2_COMPANY", schema = "oa", catalog = "")
public class Main2CompanyEntity extends BaseEntity implements Serializable {

    private String docMainId;
    private String companyId;

    public String getDocMainId() {
        return docMainId;
    }

    public void setDocMainId(String docMainId) {
        this.docMainId = docMainId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID",getId());
        obj.put("DOC_MAIN_ID",getDocMainId());
        obj.put("COMPANY_ID",getCompanyId());
        return  obj;
    }

    @Override
    public String getTableName() {
        return "t_doc_main_2_company";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("DOC_MAIN_ID","docMainId");
        obj.put("COMPANY_ID","companyId");
        return  obj;
    }
}